Skip to content

Fix FSM solver crash on flip-flops with an unconnected input pin - #708

Merged
joern274 merged 1 commit into
masterfrom
fix/solve-fsm-unconnected-pin
Dec 3, 2026
Merged

joern274 merged 1 commit into
masterfrom
fix/solve-fsm-unconnected-pin

Conversation

@AriKHaji

@AriKHaji AriKHaji commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

When the next-state function of a state flip-flop depends on an input pin that has no net connected (e.g. an unconnected CE or R pin of an FDRE), generate_state_bfs passed a nullptr to get_subgraph_function and then dereferenced it while building the error message, crashing HAL.

Check for the missing net right after looking it up and return an error that names the pin and the gate.

@joern274
joern274 merged commit 29bd89c into master Dec 3, 2026
5 checks passed
@joern274
joern274 deleted the fix/solve-fsm-unconnected-pin branch December 3, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants